<div id="work_item_list">
  <fieldset>
    <legend>必须完成的任务</legend>
    <br/>
      <%=render :partial=>'work_item',:locals=>{:work_items=>@event.must_work_items}%>
  </fieldset>
  <br/>
  <fieldset>
    <legend>自定义任务</legend>
    <br/>
      <%=render :partial=>'work_item',:locals=>{:work_items=>@event.custom_work_items}%>
  </fieldset>
</div>
<br/>
<div style="float:right">
  <a href="#" onclick="Element.toggle('add_work_item');return false">新建工作项</a>  |
    <%=link_to "返回",event_path(:id=>@event.id)%>
</div>
<br/>
<br/>
<%=render :partial=>'work_items/new_work_item_form',:locals=>{:event=>@event}%>